<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <title>后台管理</title>

    <!-- ================= Favicon ================== -->
    <!-- Standard -->
    <link rel="shortcut icon" href="http://placehold.it/64.png/000/fff">
    <!-- Retina iPad Touch Icon-->
    <link rel="apple-touch-icon" sizes="144x144" href="http://placehold.it/144.png/000/fff">
    <!-- Retina iPhone Touch Icon-->
    <link rel="apple-touch-icon" sizes="114x114" href="http://placehold.it/114.png/000/fff">
    <!-- Standard iPad Touch Icon-->
    <link rel="apple-touch-icon" sizes="72x72" href="http://placehold.it/72.png/000/fff">
    <!-- Standard iPhone Touch Icon-->
    <link rel="apple-touch-icon" sizes="57x57" href="http://placehold.it/57.png/000/fff">

    <!-- Styles -->
    <link href="__ADMIN_OTHER__/fontAwesome/css/fontawesome-all.min.css" rel="stylesheet">
    <link href="__ADMIN_CSS__/lib/themify-icons.css" rel="stylesheet">
    <link href="__ADMIN_CSS__/lib/mmc-chat.css" rel="stylesheet" />
    <link href="__ADMIN_CSS__/lib/sidebar.css" rel="stylesheet">
    <link href="__ADMIN_CSS__/lib/bootstrap.min.css" rel="stylesheet">
    <link href="__ADMIN_CSS__/lib/nixon.css" rel="stylesheet">
    <link href="__ADMIN_CSS__/style.css" rel="stylesheet">
</head>

<body>
{include file="public/menu"}
<!-- /# sidebar -->
{include file="public/header"}
<div class="content-wrap">
    <div class="main">
        <div class="container-fluid">
            <div class="row">
                <div class="col-lg-8 p-0">
                    <div class="page-header">
                        <div class="page-title">

                        </div>
                    </div>
                </div><!-- /# column -->
                <div class="col-lg-4 p-0">
                    <div class="page-header">
                        <div class="page-title">
                            <ol class="breadcrumb text-right">
                                <li><a>图片管理</a></li>
                                <li class="active">轮播图详情</li>
                            </ol>
                        </div>
                    </div>
                </div><!-- /# column -->
            </div><!-- /# row -->
            <div class="main-content">
                <div class="row">
                    <div class="col-lg-6">
                        <div class="card alert">
                            <div class="card-header">
                                <h4>轮播图详情</h4>
                                <div class="card-header-right-icon">
                                    <ul>
                                        <li class="card-close" data-dismiss="alert"><i class="ti-close"></i></li>
                                    </ul>
                                </div>
                            </div>
                            <div class="card-body">
                                <div class="basic-form">
                                    <form method="post" action="{:url('admin/Picture/rotationPictureInfo')}">
                                        <div class="form-group">
                                            <label>ID</label>
                                            <input type="text" value="{$rs.id}" name="id" class="form-control" disabled="disabled">
                                            <input type="hidden" name="id" value="{$rs.id}">
                                        </div>
                                        <div class="form-group">
                                            <label>轮播图名称</label>
                                            <input type="text" name="title" value="{$rs.title}" class="form-control" >
                                        </div>
                                        <div class="form-group">
                                            <label>图片</label><br/>
                                            <img src="{$rs.image}" id="img" class="img-thumbnail img-responsive " alt="Cinque Terre">
                                            <input type="text" name="image" id="imgsrc" value="{$rs.image}" class="form-control" >
                                        </div>
                                        <div class="form-group">
                                            <label>状态</label>
                                            <select class="form-control" name="state">
                                                <option selected="selected" value="{$rs.state}" name="state">
                                                    {switch name="rs.state"}
                                                    {case value="1"}显示{/case}
                                                    {case value="0"}不显示{/case}
                                                    {default /}default
                                                    {/switch}
                                                </option>
                                                <option value="1">显示</option>
                                                <option value="0">不显示</option>
                                            </select>
                                        </div>
                                        <div class="form-group">
                                            <label>位置</label>
                                            <input type="text" name="sort" value="{$rs.sort}" class="form-control" >
                                        </div>
                                        <div class="form-group">
                                            <label>添加时间</label>
                                            <input type="text" value="{$rs.time | date='Y-m-d H:i:s',###}" class="form-control" disabled="disabled">
                                        </div>
                                        <div class="form-group">
                                            <div class="form-group">
                                                <label>链接</label>
                                                <textarea name="link" class="form-control" rows="3" >{$rs.link}</textarea>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label>分类ID</label>
                                            <input type="text" name="cid" class="form-control" value="{$rs.cid}">
                                        </div>
                                        <button type="submit" class="btn btn-primary btn-block m-b-10">修改</button>
                                    </form>
                                </div>
                            </div>
                        </div>
                    </div><!-- /# column -->
                </div><!-- /# row -->
            </div>
        </div><!-- /# container-fluid -->
    </div><!-- /# main -->
</div><!-- /# content wrap -->

<script src="__ADMIN_JS__/lib/jquery.min.js"></script><!-- jquery vendor -->
<script src="__ADMIN_JS__/lib/jquery.nanoscroller.min.js"></script><!-- nano scroller -->
<script src="__ADMIN_JS__/lib/sidebar.js"></script><!-- sidebar -->
<script src="__ADMIN_JS__/lib/bootstrap.min.js"></script><!-- bootstrap -->
<script src="__ADMIN_JS__/lib/mmc-common.js"></script>
<script src="__ADMIN_JS__/lib/mmc-chat.js"></script>
</body>
<script>
    // 合同模板
    $('#imgsrc').blur(function () {
        var src = $("#imgsrc").val();
        $("#img").attr('src',src);
    })
</script>
</html>